import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';

class CompanyEntity with JsonConvert<CompanyEntity> {
	@JSONField(name: "data_type")
	String dataType;
	int id;
	String name;
	String uen;
	String country;
	String email;
	String website;
	dynamic logo;
	@JSONField(name: "business_type")
	String businessType;
	@JSONField(name: "industry_type")
	String industryType;
	@JSONField(name: "country_code")
	String countryCode;
	@JSONField(name: "phone_number")
	dynamic phoneNumber;
	@JSONField(name: "address_country")
	String addressCountry;
	@JSONField(name: "address_city")
	String addressCity;
	@JSONField(name: "address_postal_code")
	String addressPostalCode;
	@JSONField(name: "address_line_1")
	String addressLine1;
	@JSONField(name: "address_line_2")
	dynamic addressLine2;
	@JSONField(name: "address_unit")
	String addressUnit;
	@JSONField(name: "delivery_address_country")
	String deliveryAddressCountry;
	@JSONField(name: "delivery_address_city")
	String deliveryAddressCity;
	@JSONField(name: "delivery_address_postal_code")
	String deliveryAddressPostalCode;
	@JSONField(name: "delivery_address_line_1")
	String deliveryAddressLine1;
	@JSONField(name: "delivery_address_line_2")
	dynamic deliveryAddressLine2;
	@JSONField(name: "delivery_address_unit")
	String deliveryAddressUnit;
	@JSONField(name: "financial_year_start_at")
	dynamic financialYearStartAt;
	@JSONField(name: "financial_year_end_at")
	dynamic financialYearEndAt;
	@JSONField(name: "financial_year_period")
	int financialYearPeriod;
	@JSONField(name: "enable_gst")
	int enableGst;
	@JSONField(name: "gst_agency")
	String gstAgency;
	@JSONField(name: "gst_agency_text")
	String gstAgencyText;
	@JSONField(name: "gst_number")
	dynamic gstNumber;
	@JSONField(name: "filling_frequency")
	String fillingFrequency;
	@JSONField(name: "filling_frequency_text")
	String fillingFrequencyText;
	@JSONField(name: "gst_effective_date")
	String gstEffectiveDate;
	@JSONField(name: "gst_rate")
	String gstRate;
	@JSONField(name: "default_currency_code")
	String defaultCurrencyCode;
	@JSONField(name: "default_payment_type_id")
	dynamic defaultPaymentTypeId;
	@JSONField(name: "date_format")
	String dateFormat;
	CompanyTemplates templates;
	dynamic currencies;
	dynamic contributions;
	@JSONField(name: "my_role")
	String myRole;
	@JSONField(name: "created_by")
	dynamic createdBy;
	@JSONField(name: "created_at")
	String createdAt;
	@JSONField(name: "updated_at")
	String updatedAt;
}

class CompanyTemplates with JsonConvert<CompanyTemplates> {
	String invoice;
	String delivery;
	@JSONField(name: "credit_note")
	String creditNote;
	@JSONField(name: "purchase_order")
	String purchaseOrder;
}
